package com.zbkj.common.model.splittingAccount;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 分账表(按广告/代发区分)
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_split_account")
@ApiModel(value = "EbSplitAccount对象", description = "分账表(按广告/代发区分)")
public class EbSplitAccount implements Serializable {


    private static final long serialVersionUID = -3365159437548244461L;
    @ApiModelProperty(value = "唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商家id")
    private String merId;
    private String merName;

    @ApiModelProperty(value = "第三方支付id")
    private String payId;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "订单类型")
    private String orderType;

    @ApiModelProperty(value = "订单日期")
    private Date orderDate;

    @ApiModelProperty(value = "产品id")
    private String productId;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "关联广告订单(仅代发订单有)")
    private String relatedOrder;

    @ApiModelProperty(value = "理论毛利")
    private BigDecimal grossProfit;

    @ApiModelProperty(value = "行销费")
    private BigDecimal marketingFee;

    @ApiModelProperty(value = "可分配差额")
    private BigDecimal distributableAmount;

    @ApiModelProperty(value = "销售收入")
    private BigDecimal salesRevenue;

    @ApiModelProperty(value = "产品成本")
    private BigDecimal productCost;

    @ApiModelProperty(value = "广告位费(仅广告订单有)")
    private BigDecimal adPositionFee;

    @ApiModelProperty(value = "载体数量")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "载体单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "选品人员id")
    private String merchandiserMerId;

    @ApiModelProperty(value = "选品人员")
    private String merchandiserName;

    @ApiModelProperty(value = "商品人员分账金额")
    private BigDecimal merchandiserAmount;

    @ApiModelProperty(value = "市代理id")
    private String agentMerId;

    @ApiModelProperty(value = "市代理")
    private String agentName;

    @ApiModelProperty(value = "市代理分账金额")
    private BigDecimal agentAmount;

    @ApiModelProperty(value = "公司")
    private String company;
    @ApiModelProperty(value = "渠道id")
    private String channelId;
    @ApiModelProperty(value = "渠道名称")
    private String channelName;
    @ApiModelProperty(value = "渠道佣金")
    private String channelAmount;

    @ApiModelProperty(value = "公司分账金额")
    private BigDecimal companyAmount;

    @ApiModelProperty(value = "状态(0-未分账,1-已分账)")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
